import numpy as np
def sigmoid(x):
    return 1/(1+np.exp(-x))

def step_function(x):
    return np.array(x>0,dtype=np.int)

def relu(x):
    return np.maximum(0,x)

x=np.array([1,2])
print(x)
w1=np.array([[1,3,5],[2,4,6]])
y1=np.dot(x,w1)
print(y1)

y1=sigmoid(y1)
w2=np.array([[1,2],[3,4],[5,6]])
y2=np.dot(y1,w2)
print(y2)

y2=step_function(y2)
w3=np.array([[1,2],[3,4]])
y3=np.dot(y2,w3)
print(y3)

y3=relu(y3)
print(y3)

